#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QMainWindow>
#include <QVBoxLayout>
#include <string>
#include <thread>
class VideoWidget;
class VideoRead;
class GstVideoReader;

QT_BEGIN_NAMESPACE
namespace Ui {
class MainWindow;
}
QT_END_NAMESPACE

class MainWindow : public QMainWindow {
    Q_OBJECT

   public:
    MainWindow(QWidget* parent = nullptr);
    ~MainWindow();
    void videoWidget(const char* videoPath);
    void videoWidget2(std::string videoPath);

   protected:
    void closeEvent(QCloseEvent* event) override;

   private:
    int widgetNum_ = 0;
    QHBoxLayout* layout_ = nullptr;
    VideoWidget* videoWidget_[2];
};
#endif  // MAINWINDOW_H
